<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            margin: 100px auto;
        }
        img{
            width: 300px;
            transition: all 2s;
        }

        .box{
            /* 一般y轴旋转需要添加透视效果 */
            /* 建议：透视距离要大于等于元素的宽度 一般建议取值800~1000*/
            perspective: 1000px;

        }

        .box:hover img{
            transform: rotateZ(360deg);
            transform: rotateX(45deg);
            transform: rotateY(45deg);

        }

    </style>
</head>
<body>
    <div class="box">
        <img src="./images/hero.jpeg" alt="">

    </div>
</body>
</html>